<?php
/**
 * Created by JetBrains PhpStorm.
 * User: Андрей
 * Date: 02.05.12
 * Time: 19:05
 * To change this template use File | Settings | File Templates.
 */

    /*
     * Модель заметки
     */

    class NoteModel
    {
        // id
        private $_userId;
        private $_noteId;

        // даныне
        private $_text;
        private $_time;
        private $_date;

        // видео
        private $_youtube = null;
        private $_vimeo = null;
        

        public function __construct($userId = null,$noteId = null,$text = null,$time = null,$date = null)
        {
            $this->_userId = $userId;
            $this->_noteId = $noteId;
            $this->_text = $text;
            $this->_date = $date;
            $this->_time = $time;
        }

        public function setDate($date)
        {
            $this->_date = $date;
            return $this;
        }

        public function getDate()
        {
            return $this->_date;
        }

        public function setNoteId($noteId)
        {
            $this->_noteId = $noteId;
            return $this;
        }

        public function getNoteId()
        {
            return $this->_noteId;
        }

        public function setText($text)
        {
            $this->_text = $text;
            return $this;
        }

        public function getText()
        {
            return $this->_text;
        }

        public function setTime($time)
        {
            $this->_time = $time;
            return $this;
        }

        public function getTime()
        {
            return $this->_time;
        }

        public function setUserId($userId)
        {
            $this->_userId = $userId;
            return $this;
        }

        public function getUserId()
        {
            return $this->_userId;
        }

        public function setVimeo($vimeo)
        {
            $this->_vimeo = $vimeo;
            return $this;
        }

        public function getVimeo()
        {
            return $this->_vimeo;
        }

        public function setYoutube($youtube)
        {
            $this->_youtube = $youtube;
            return $this;
        }

        public function getYoutube()
        {
            return $this->_youtube;
        }


    }
